import yaml
def configData():
    with open('setting.yml', 'rb') as f:
        # data = yaml.load(f, loader=yaml.FullLoader)
        data = yaml.full_load(f)
        return data


REDIS_INFO = {
    'host': '47.94.144.144',
    'password': 'sanwenqian',
    'port': 6380
}
'''
test1
'''
# MYSQL_INFO = {
#     'host': '47.94.144.144',
#     'user': 'appuser',
#     'password': 'appuser007',
#     'db': 'tiantian_v2',
#     'port': 3306,
# }

'''
test3
'''
MYSQL_INFO = {
    'host': '101.201.57.80',
    'user': 'appuser',
    'password': 'appuser007',
    'db': 'tiantian',
    'port': 3306,
}


# HOST_WALLINFO = 'http://apiishop.tt.sanwenqian.cn'
test3Url = 'http://apiv2.test3.sanwenqian.cn'
encodeUrl = 'http://apiv2.test3.sanwenqian.cn/api/user/enOrdecrypt'

